package com.sun.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Project: hospitalDrugInformationManagement
 * @Author: 86178
 * @Date: 2023/4/3 12:11
 * @FileName: ReturnGoods
 * @Description: ""
 */
@Data
public class ReturnGoods extends Model<ReturnGoods> {
    /**
     * 主键id
     */
    @TableId()
    private Integer id;
    private Long drugId;
    /**
     * 药品名称
     */
    private String drugName;
    /**
     * 数量
     */
    private Integer count;
    /**
     * 退货原因
     */
    private String reason;
    /**
     * 总金额
     */
    private Float total;
    /**
     * 操作时间
     */
    private LocalDateTime operateTime;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
